package com.example.big_data.Mapper;

import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.List;

public class Reader {
   public List<String> read_forProduct1() throws IOException {
       String fileName="..\\data\\data1\\res.txt";
       List<String> lines= Files.readAllLines(Paths.get(fileName), StandardCharsets.UTF_8);

       return lines;
   }


   public List<String> read_forProduct2() throws IOException {
     String fileName="..\\data\\data3\\res.txt";
     List<String> lines=Files.readAllLines(Paths.get(fileName),StandardCharsets.UTF_8);

     return  lines;
   }


   public List<String> read_forSell() throws IOException {
       String fileName="..\\data\\data2\\res.txt";
       List<String> lines=Files.readAllLines(Paths.get(fileName));

       return lines;

   }

}
